package org.uoss.applications.framework.dao.model;

/**
 * @Author: WangHongTao
 * @Description:
 * @Copyright:  2006 Union Operation Support System.
 */

import java.io.Serializable;
import java.util.Collection;

public class ResultSetModel<T> implements Serializable {
	private static final long serialVersionUID = 198307210333l;
	
	private Collection<T> items;
	private int totalCount;;
	private int beginRow;
	
	public ResultSetModel(){}
	
	public ResultSetModel(Collection<T> result,int beginIndex,int size){
		this.items = result;
		this.totalCount = size;
		this.beginRow = beginIndex;
	}

	public Collection<T> getItems() {
		return items;
	}

	public void setItems(Collection<T> items) {
		this.items = items;
	}

	/**
	 * @return Returns the totalCount.
	 */
	public int getTotalCount() {
		return totalCount;
	}

	/**
	 * @param totalCount The totalCount to set.
	 */
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	/**
	 * @return Returns the startRow.
	 */
	public int getBeginRow() {
		return beginRow;
	}

	/**
	 * @param startRow The startRow to set.
	 */
	public void setBeginRow(int beginRow) {
		this.beginRow = beginRow;
	}
	
}
